package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.back.domain.UserSystemNoticeMessage
import com.ruoyi.back.enums.SendUserTypeEnum
import io.swagger.annotations.ApiModelProperty


data class SystemNoticeParam(

    @ApiModelProperty("关联消息id")
    var systemNoticeId: Long? = null,

    @ApiModelProperty("通知标题")
    var title: String? = null,

    @ApiModelProperty("通知内容")
    var content: String? = null,

    @ApiModelProperty("封面图")
    var frontPic:String? = null,

    @ApiModelProperty("是否跳转")
    var skipBool: Boolean? = false,

    @ApiModelProperty("跳转链接")
    var skipUrl: String? = null,

    @ApiModelProperty("单个用户的id")
    var singleUserId: Long? = null,
)

interface UserSystemNoticeMessageService : IService<UserSystemNoticeMessage> {

    /**
     * 给用户发送系统通知消息
     */
    fun sendUserSystemNoticeMessage(sendUserType: SendUserTypeEnum, systemNoticeParam: SystemNoticeParam)
}